package com.beok.android.joylife.utils;

import java.io.InputStream;
import java.util.Properties;


public class ConfigFile {
	private static Properties prop = null;	
	static {   
		try {   
			prop = new Properties();      
			InputStream is = ConfigFile.class.getClassLoader().getResourceAsStream("config.properties");  
	        prop.load(is);    
	     
		}catch (Exception e) {   
            e.printStackTrace();
		}   
	}
	
	public static String getHttpUrl(){
		return prop.getProperty("http_url");
	}
	
	public static String getTcpServer(){
		return prop.getProperty("tcp_server");
	}
	
	public static String getTcpPort(){
		return prop.getProperty("tcp_port");
	}
	
	public static String getServerUrl(){
		return prop.getProperty("server_url");
	}

	public static void setProperty(String key, String value) { 
		
			}
}

